Skip to content

Conversation

@bsatarnejad
Copy link
Contributor

@bsatarnejad bsatarnejad commented Oct 31, 2025

Ticket

https://community.openproject.org/wp/68561

What are you trying to accomplish?

As discussed in https://community.openproject.org/projects/design-system/work_packages/68657/meetings, Don't show the dashboard, when the user doesn't have the permission to manage dashboard.

) do |t|
t.with_icon(icon: :"op-view-list")
t.with_text { I18n.t("overviews.label_dashboard") }
if current_user.allowed_in_project?(:view_members, project)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what was discussed as the linked meeting does not really reveal that. However, just looking at the code, it makes no sense to hide the whole dashboard when a user does not have the permission to view members. We don't even know, whether the members widget is shown in the dashboard. Maybe I am missing something here, but this looks wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsatarnejad bsatarnejad requested a review from HDinger November 3, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants